﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace WLYT.Domain.Entries
{
    ///<summary>
    ///订单详情
    ///</summary>
    [SugarTable("OrderItem")]
    public partial class OrderItem
    {
           public OrderItem(){

            this.OrderId =Convert.ToInt32("0");
            this.OrderNo =Convert.ToString("");
            this.OrderType =Convert.ToInt32("0");
            this.Type =Convert.ToInt32("0");
            this.ReelId =Convert.ToString("");
            this.Qty =Convert.ToInt32("0");
            this.WarehouseNo =Convert.ToString("");
            this.LocationNo =Convert.ToString("");
            this.LotNo =Convert.ToString("");
            this.Size =Convert.ToInt32("0");
            this.OriginalCode =Convert.ToString("");
            this.SupplierId =Convert.ToString("");
            this.SupplierName =Convert.ToString("");
            this.Msl =Convert.ToDecimal("0");
            this.Thickness =Convert.ToInt32("0");
            this.Diameter =Convert.ToInt32("0");
            this.ExpirationTime =DateTime.Now;
            this.GRTime =DateTime.Now;
            this.BoxCode =Convert.ToString("");
            this.Export =Convert.ToString("");
            this.IsUpLoad =false;
            this.Status =Convert.ToInt32("0");
            this.CreateTime =DateTime.Now;
            this.Qrcode =Convert.ToString("");
            this.Dull =Convert.ToInt32("0");
            this.IsWaitTran =false;

           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
           public long Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int OrderId {get;set;}

           /// <summary>
           /// Desc:单号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string OrderNo {get;set;}

           /// <summary>
           /// Desc:出入库类型（0：入库，1：出库，2：移库）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int OrderType {get;set;}

           /// <summary>
           /// Desc:订单类型（0入库；1消耗拉动；2领料；3强补；4离线备料；5快入快出）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Type {get;set;}

           /// <summary>
           /// Desc:ReelId
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string ReelId {get;set;}

           /// <summary>
           /// Desc:库存数量
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Qty {get;set;}

           /// <summary>
           /// Desc:仓库编码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string WarehouseNo {get;set;}

           /// <summary>
           /// Desc:库位
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string LocationNo {get;set;}

           /// <summary>
           /// Desc:批次
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string LotNo {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Size {get;set;}

           /// <summary>
           /// Desc:原厂料号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string OriginalCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string SupplierId {get;set;}

           /// <summary>
           /// Desc:供应商名称
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string SupplierName {get;set;}

           /// <summary>
           /// Desc:湿敏等级
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal Msl {get;set;}

           /// <summary>
           /// Desc:厚度
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Thickness {get;set;}

           /// <summary>
           /// Desc:直径
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Diameter {get;set;}

           /// <summary>
           /// Desc:过期时间
           /// Default:DateTime.Now
           /// Nullable:True
           /// </summary>           
           public DateTime? ExpirationTime {get;set;}

           /// <summary>
           /// Desc:GR时间
           /// Default:DateTime.Now
           /// Nullable:True
           /// </summary>           
           public DateTime? GRTime {get;set;}

           /// <summary>
           /// Desc:箱子编号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string BoxCode {get;set;}

           /// <summary>
           /// Desc:流水线出口
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Export {get;set;}

           /// <summary>
           /// Desc:是否上传
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public bool IsUpLoad {get;set;}

           /// <summary>
           /// Desc:状态（0：待出库，1：运输中，2：出库完成）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Status {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:DateTime.Now
           /// Nullable:False
           /// </summary>           
           public DateTime CreateTime {get;set;}

           /// <summary>
           /// Desc:出入库时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? InOrOutTime {get;set;}

           /// <summary>
           /// Desc:二维码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Qrcode {get;set;}

           /// <summary>
           /// Desc:1呆滞，0正常  
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Dull {get;set;}

           /// <summary>
           /// Desc:是否等待运输
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public bool IsWaitTran {get;set;}

           /// <summary>
           /// Desc:装箱时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? PickTime {get;set;}

    }
}
